<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="/struts-tags" prefix="s"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>显示指定类型下的书籍</title>
</head>
<body>
<s:form id="type_book_from" namespace="/control/mapping" action="book_typeBookMap">
	<table>
		<thead>
			<tr>
				<td colspan="10">
					<font>当前页:第${view.currentpage}页 | 总记录数:${view.totalrecord}条 | 每页显示:${view.maxrecord}条 | 总页数:${view.totalpage}页</font>　
				</td>
			</tr>
			<tr>
				<td colspan="10">
					<c:forEach begin="${view.pageindex.startindex}" end="${view.pageindex.endindex}" var="page">
					    <c:if test="${view.currentpage==page}"><b><font color="#00ffff">${page}</font></b></c:if>
					    <c:if test="${view.currentpage!=page}"><a onclick="findTypeBook(${page})">[${page}]</a></c:if>
					</c:forEach>
				</td>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>选择</td>
				<td>图片</td>
				<td>名称</td>
			</tr>
			<s:iterator value="view.records" var="book_list" status="st">
				<tr>
					<td><input type="checkbox"  name="ids" value="${book_list.id}" title="checkedName"/></td>
					<td><img src="${book_list.logo_300}" width="100" height="120"/></td>
					<td>${book_list.bookName}</td>
				</tr>
			</s:iterator>
		</tbody>
		<tfoot>
			<tr>
				<td>
					<input type="checkbox" id="allCheckBox" onclick="selectAll()"/>全选
				</td>
				<td>
					<input type="hidden" id="typeName" name="typeName">
					<input type="hidden" name="ftlName" value="${ftlName}">
					<input type="hidden" name="htmlName" id="htmlName">
					  
					<input type="radio" name="modul" onclick="modulSelect(1)" title="modul">模板一
					<input type="radio" name="modul" onclick="modulSelect(2)" title="modul">模板二
					<input type="radio" name="modul" onclick="modulSelect(3)" title="modul">模板三
					<input type="radio" name="modul" onclick="modulSelect(4)" title="modul">模板四
				</td>
				<TD>
					<input type="button" value="生成静态HTML模板" onclick="checkModulSelect()">
				</TD>
			</tr>
		</tfoot>
	</table>
</s:form>
</body>
</html>